<?php

namespace sil29\VitrineBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class SidebarController extends Controller {
	public function genererCategoriesListeAction() {
		$listeCategories = $this->getDoctrine ()->getManager ()->getRepository ( 'sil29VitrineBundle:Categorie' )->findAll ();
		return $this->render ( 'sil29VitrineBundle:Default:sidebar.html.twig', array (
				'listeCategories' => $listeCategories 
		));
		
	}
}